﻿import QtQuick 2.0
import QtQuick.Templates 2.12
import QtGraphicalEffects 1.14


CustomPopupBox{
    id: root
    height: 270*dp
    width: 400*dp
    property string box_text: "这是一个正确消息提示"
    title: ""
    contentItem: Item{
        id: content
        Image {
            y: 20*dp
            id: name
            anchors.horizontalCenter: parent.horizontalCenter
            height: 50*dp;  width: 50*dp
            source: "qrc:/picture/msgSuccess.png"
        }

        Text{
            height: 100*dp
            lineHeight: 1.3
            font.pixelSize: config.fontsize
            anchors.horizontalCenter: parent.horizontalCenter
            y: 80*dp
            text: "提示"
        }

        Text {
            id: msgText
            lineHeight: 1.05
            font.pixelSize: config.fontsize
            anchors.centerIn: parent
            anchors.verticalCenterOffset: 15*dp
            wrapMode: Text.WordWrap
            horizontalAlignment: Text.AlignHCenter
            width: parent.width-70*dp
            color: "#999999"
            text: box_text
        }

        CustomButton{
            y: content.height - 70*dp
            anchors.horizontalCenter: parent.horizontalCenter
            defaultMode2: true
            title: "确认"
            onReleased: {
                root.visible = false
            }
        }
    }
}
